//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.ares.app.demo.entities.sand;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(
        name = "trav_route"
)
@NamedQuery(
        name = "Stravelroute.findAll",
        query = "SELECT s FROM Stravelroute s"
)
public class Stravelroute implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private int id;
    private String name;
    @ManyToOne
    @JoinColumn(
            name = "route"
    )
    private Stravelcustomizedbus stravelcustomizedbus;

    public Stravelroute() {
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "Stravelroute [id=" + this.id + ", name=" + this.name + ", stravelcustomizedbus=" + this.stravelcustomizedbus + "]";
    }
}
